<template>
  <div class="soon">
    <h3>我是soon组件(孙),{{car.name}}--{{car.price}}</h3>
  </div>
</template>
<script>
import {inject} from "vue";

export default {
  name: 'Soon',
  setup(){
   let car=inject('car')
    // console.log(car,'!!!!')

    return{car}
  }
}
</script>

<style>
.soon{
  background-color: orange;
  padding: 10px;
}
</style>
